<%@ page import="ee.ttu.rakarh.model.data.entities.PriceListStatusType" %>
<jsp:useBean id="piceListStatusTypes" scope="request" type="java.util.Collection<ee.ttu.rakarh.model.data.entities.PriceListStatusType>" />

    <script type="text/javascript" src="js/addPriceList.js"></script>

    
	<form id="addNewPriceListForm" method="post" action="/ladu/api?a=savePiceList">
	<div style="white-space:nowrap;">
		<div class="inlineFormBlock" stype="width:200px;">
			<div>Discount:<br/><input name="discount" type="text" value=""/></div><div class="errorDiv" id = "discountErrorDiv"></div>
			<div>Date from:<br/><input name="dateFrom" type="text" value=""/></div><div class="errorDiv" id = "dateFromPriceErrorDiv"></div>
			<div>Date to:<br/><input name="dateTo" type="text" value=""/></div><div class="errorDiv" id = "dateToErrorDiv"></div>
			<div>Note:<br/><input name="note" type="text" value=""/></div><div class="errorDiv" id = "noteErrorDiv"></div>
			
			<%
			out.println("<select>");
			for(PriceListStatusType piceListStatusType : piceListStatusTypes){
				out.println("<option value=\"" + piceListStatusType.getId() +"\">" + piceListStatusType.getTypeName() + "</option>");
			}
			out.println("</select>");
			%>
			
		</div>
	</div>
		<div><button id="submit1" name="submitButton" >Add item</button></div>
	</form>
	<div id="successNotification">
		<p>Item is added</p>
	</div>
	<div id="errorNotification">
		<p>Errors!</p>
	</div>